<?php
/* @var $this LocationController */
/* @var $model Location */
/* @var $form CActiveForm */
?>
<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->getRoute()),
	'method'=>'get',
)); ?>
<table width="100%" border="0" cellpadding="0" cellspacing="5" id="cadreAdvancedSearch">
            <tr>
              <td width="12%" rowspan="3" valign="top" class="titresPremium"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/icon-advancedsearch.png" width="88" height="73"></td>
              <td width="13%" align="right" valign="top"><?php echo Yii::t('main', 'by-name')?> :</td>
              <td width="20%" valign="top">
             
              <?php echo $form->textField($model,'searchedName',array('size'=>30,'maxlength'=>250,'class'=>'searchImput')); ?>             
              </td>
               <td align="right" valign="top"><?php echo Yii::t('main', 'participant-number')?> :</td>
              <td valign="top"><label for="textfield3"></label>
              	<?php echo $form->textField($model,'capacity',array('size'=>10,'maxlength'=>10,'class'=>'searchImput')); ?>  
              </td>      
              
              <td width="12%">&nbsp;</td>
            </tr>
            <tr>
              <td align="right" valign="top"><?php echo Yii::t('main', 'by-dept')?> :</td>
              <td valign="top"><label for="departements"></label>
               <?php echo $form->dropDownList($model,'departmentList',CHtml::listData($params['departmentList'],'id','name'),array('id'=>'departements','width'=>'170','multiple'=>'multiple','class'=>'searchImput','prompt'=>'Départements de ...',));?>
               </td>
              <td width="14%" align="right" valign="top"><?php echo Yii::t('main', 'by-type')?> :</td>
              <td width="29%" valign="top">
              <?php echo $form->dropDownList($model,'typeList',CHtml::listData(Type::model()->findAll(),'id','name'),array('id'=>'lieux','multiple'=>'multiple','class'=>'searchImput','prompt'=>'Tous types de lieux...',));?>
              </td>     
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td align="right" valign="top"><?php echo Yii::t('main', 'by-event')?> :</td>
              <td valign="top">
               <?php echo $form->dropDownList($model,'eventList',CHtml::listData(Event::model()->findAll(),'id','name'),array('id'=>'lieux2','multiple'=>'multiple','class'=>'searchImput','prompt'=>'Nature de l\'événement...',));?>
              </td>
              <td align="right" valign="top"><?php echo Yii::t('main', 'services')?> :</td>
              <td valign="top">
               <?php echo $form->dropDownList($model,'serviceList',CHtml::listData(Service::model()->findAll(),'id','name'),array('id'=>'lieux','multiple'=>'multiple','class'=>'searchImput','prompt'=>'Services...',));?>
               </td>
              <td>
              <?php 
              	if(!empty($params['displayArea' ])){
              		echo CHtml::hiddenField('area',$params['displayArea' ]->id);
              	}
              ?>           
           	   <?php echo CHtml::imageButton(Yii::app()->request->baseUrl."/images/bt-rechercher.png",array('width'=>'117','height'=>'28'));?>         
            </tr>
          </table>
<?php $this->endWidget(); ?>
